<!DOCTYPE html>
<html>
  <head>
    <style>
      .green { color: green; }
    </style>
  </head>
  <body>
    <div>
      This should be green
    </div>
    <script>
      document.body.firstElementChild.classList.add("green");
    </script>
  </body>
</html>
